import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'// 这个用来存token
const TokenTime = 'vue_token_time'// 这个用来存token保存的起始时间

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function setTokenTime(time) {
  return Cookies.set(TokenTime, time)
}
export function getTokenTime() {
  return Cookies.get(TokenTime)
}
export function removeTokenTime() {
  return Cookies.set(TokenTime)
}

